//
//  procedureDlgViewController.h
//  NvSellerShow
//
//  Created by dx on 17/1/19.
//  Copyright © 2017年 Meicam. All rights reserved.
//  模板制作界面


#import <UIKit/UIKit.h>
#import "NvProcedureTableViewOriginCell.h"
#import "NvProcedureTableViewCell.h"
#import "QBImagePickerController.h"
#import "NvMusicSelectionViewController.h"
#import "NvTakeMediaViewController.h"
#import "NvTakeVideoViewController.h"
#import "NvEditAudioViewController.h"
#import "NvEditVideoViewController.h"
#import "NvTakeMediaViewController.h"
#import "NvCompileAndSaveViewController.h"

typedef enum {
    AutoScrollUp,
    AutoScrollDown
} AutoScroll;


@class NvProcedureDlgViewController;

@protocol NvProcedureDlgViewControllerDelegate <NSObject>

-(void)nvProcedureDlgViewControllerPoped:(NvProcedureDlgViewController*)controller;

@end

@interface NvProcedureDlgViewController : UIViewController <UITableViewDelegate, UITableViewDataSource, NvProcedureTableViewOriginCellDelegate, NvProcedureTableViewCellDelegate, QBImagePickerControllerDelegate, NvMusicSelectionViewControllerDelegate,NvTakeMediaViewControllerDelegate,NvTakeVideoViewControllerDelegate,NvEditAudioViewControllerDelegate,NvEditVideoViewControllerDelegate>


@property (nonatomic, weak) id<NvProcedureDlgViewControllerDelegate> delegate;

//for auto scroll tableview when is drag at begin or end
@property (nonatomic, strong) CADisplayLink *displayLink;
@property (nonatomic, assign) AutoScroll autoScroll;
@property (nonatomic, assign) CGFloat scrollSpeed;


@property (nonatomic, copy)   NSString * themeUuid;
@property (nonatomic, copy) NSString *themeName;

@property (nonatomic, assign) NvSSVideoCreateScale editmode;
@property (nonatomic, strong) NSMutableArray * modelArray;

@property (nonatomic, strong) NvMakeFilmClipModel * editingModel;

@property (nonatomic, copy) NSString *bgMusicTitle;
@property (nonatomic, copy) NSString *bgMusicPath;

//seconds
@property (nonatomic, strong) NSNumber *bgMusicTrimIn;
//seconds
@property (nonatomic, strong) NSNumber *bgMusicTrimOut;

//volumn
@property (nonatomic, strong) NSNumber *soundVolumn;
@property (nonatomic, strong) NSNumber *recordVolumn;
//draft relative
@property (nonatomic, strong) NSDictionary *draftDictionary;

- (void)readDraft;
@end
